package gulimall.pojo.bo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author HLF
 * @date 2022/8/1 18:41
 */
@Data
public class UserLoginBO {

    /**
     * 账号可以是用户名或者是手机号
     */
    @NotBlank(message = "账号不能为空")
    @Length(max = 18, min = 6, message = "账号必须是6-18位字符")
    private String loginUser;

    @NotBlank(message = "密码不能为空")
    @Length(max = 18, min = 6, message = "密码必须是6-18位字符")
    private String password;
}
